package com.ztsjglxt.core.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.transaction.annotation.Transactional;

import com.ztsjglxt.core.IMenu;
import com.ztsjglxt.dao.MenuMapper;
import com.ztsjglxt.entity.Menu;

@Service
@EnableTransactionManagement
@Transactional
public class MenuImpl implements IMenu {

	@Autowired
	private MenuMapper menudao;
	@Override
	public List<Map<String, Object>> selectlist(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return menudao.selectlist(new HashMap<String,Object>());
	}
	@Override
	public int insert(Menu record) {
		// TODO Auto-generated method stub
		return menudao.insert(record);
	}
	@Override
	public int insertSelective(Menu record) {
		// TODO Auto-generated method stub
		return menudao.insertSelective(record);
	}
	@Override
	public int updatemeu(Menu entity) {
		// TODO Auto-generated method stub
		return menudao.updateMenu(entity);
	}
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return menudao.deleteByPrimaryKey(id);
	}

}
